package com.collect.collect.api.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.collect.collect.api.dao.DataMonitorLogMapper;
import com.collect.collect.api.entity.DataMonitorLog;
import com.collect.collect.api.service.IDataMonitorLogService;
import com.collect.collect.config.annotation.DataSource;
import com.collect.collect.config.enums.DataSourceType;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@DataSource(value = DataSourceType.SLAVE)
public class DataMonitorLogServiceImpl extends ServiceImpl<DataMonitorLogMapper, DataMonitorLog> implements IDataMonitorLogService {

    @Autowired
    private DataMonitorLogMapper dataMonitorLogMapper;

    @Override
    public boolean saveDataMonitorLog(DataMonitorLog dataMonitorLog) {
        return save(dataMonitorLog);
    }
}